package com.example.springboot_demo2.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StudentController {

    private static final Logger logger = LoggerFactory.getLogger("StudentController.class");

    @RequestMapping("/stu/sayhi")
    public String sayHi() {
        logger.info("student info");
        logger.error("student error");

        return  "student sayHi";

    }
}
